Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Scoped custom elements registries #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leobalter
Copy link
Owner

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chrome: …
    • Firefox: …
    • Safari: …

(See WHATWG Working Mode: Changes for more details.)

source Outdated
@@ -66141,6 +66142,36 @@ dictionary <dfn>ElementDefinitionOptions</dfn> {
<span>connected</span>.</dd>
</dl>

<p>New instances of <code>CustomElementRegistry</code> can be defined and attached to a
<span>ShadowRoot</span> through the registry option from <code
data-x="dom-Element-attachShadow">attachShadow()</code>. Those instances are are independent of

This comment was marked as resolved.

source Outdated

<dd>Defines a new <span data-x="dom-CustomElementRegistry">Registry</span> that can map an
independent set of <span data-x="dom-window-customElements">custom elements</span>, which is
not attached yet to any <span>Document</span> or any <span>ShadowRoot</span>.</dd>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe custom registries can only be associated to a shadow root instance, not to a document.

also, I will like to use the the word "association" rather than "attach", because that opens the door to change that association at any given time.

@leobalter leobalter force-pushed the scoped-custom-elements-registries branch from bae7b7a to b82f148 Compare August 20, 2020 20:12
@leobalter
Copy link
Owner Author

cc @justinfagnani

source Outdated Show resolved Hide resolved
@leobalter leobalter force-pushed the scoped-custom-elements-registries branch from b82f148 to 9cb3afc Compare October 16, 2020 20:15
@leobalter leobalter force-pushed the scoped-custom-elements-registries branch from e2c3553 to e069979 Compare October 16, 2020 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants